

import 'package:s_mankey/provider/view_state_model.dart';
import 'package:s_mankey/service/smonkey_repository.dart';

class StudentAuthenticatVModel extends ViewStateModel{

  var datas; //总数据
  var tellDatas; //联系我们数据

  initData() async {
    setBusy();
    try {
      List<Future> futures = [];
      futures
        ..add(SmonkeysRepository.fetchIsIdentify())
        ..add(SmonkeysRepository.fetchTellMe());
      return await Future.wait(futures);

      setIdle();
    } catch (e, s) {
      setError(e, s);
    }
  }

}